Thanks for downloading ImageButton. You can look for the latest version at http://www.csee.usf.edu/~birla/programs/. Here is a template for the APPLET tag to get you started.
Note: There is a bug in Java that will not let you load this applet from your local drive. It has to be on a server. This problem will be fixed with the new version of IE and Netscape.
applet code="ImageButton.class" width=45 height=45 param name="button_up" value="cd.gif" param name="button_down" value="cdd.gif" param name="animate" value="true" param name="grayImage" value="true" param name="url" value="http://www.csee.usf.edu/~birla/" param name="status" value="This is a demo button #5" param name="target" value="_self" param name="click_sound" value="piano.au" param name="border" value="1" /applet
If you copy and paste from here, do not forget to add the '<' at the beginning of the tags. I skipped them above so that it is displayed in the browser as plain text and not considered as HTML tags (which remain hidden!)
PARAMETER |
VALUE |
button_up - |
the gif to be displayed on the button |
button_down - |
the gif to be displayed when the button is depressed |
animate - |
true or false. Assigning true will cause the applet to animate using the button_up and button_down images when the mouse is over it. |
grayImage - |
gray image or not. If assigned true, image will be grayed when the mouse is not over it. |
url - |
URL of the destination link. |
status - |
Text that will be displayed at the bottom in the status bar. |
target - |
Name of the frame in which the destination page is to be displayed. You can skip this of you are not using frames. |
click_sound - |
sound to play when button is clicked |
border - |
thickness of the border in pixels (default=1) |
Author : Sumit Birla
Notes : Email me if you are interested in the source code.